package edu.gd.mvndemo;

import edu.gd.dao.UserDao;
import edu.gd.entity.User;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;

public class service {
    public static boolean isUser(String user,String password) {
        User u1=UserDao.getUserByID(user);
        return u1==null?false: u1.getPassword().equals(password);
    }
}
